package FloorComponents;

public class Grid {

	protected boolean[][] _grid;
	
	public Grid(int x, int y){
		_grid = new boolean[x][y];
		for(int i = 0; i <= y-1; i++)
			for(int j = 0; j <= x-1; j++)
				_grid[i][j] = false;
	}
	
	public void add(int x, int y){
		_grid[x][y] = true;
	}
	
	public boolean check(int x, int y){
		return _grid[x][y];
	}
}
